from app import db
from app.models.knowledge_base import KnowledgeBase

class KnowledgeBaseService:
    @staticmethod
    def create_knowledge_base(name, description, embedding_model):
        kb = KnowledgeBase(
            name=name,
            description=description,
            embedding_model=embedding_model
        )
        db.session.add(kb)
        db.session.commit()
        return kb 